﻿using System.ComponentModel.DataAnnotations;

namespace Keep.API.Common.L.Dtos
{
	/// <summary>
	/// 工单DTO
	/// </summary>
	public class WorkSheetDto
	{
		/// <summary>
		/// 工单ID
		/// </summary> 
		public int WorkSheetId { get; set; }
		/// <summary>
		/// 工单编号
		/// </summary>
		[MaxLength(255)]
		public string WorkSheetNumber { get; set; }
		/// <summary>
		/// 工序ID 
		/// </summary>
		[Range(0, int.MaxValue)]
		public int ProductionProcessesId { get; set; }
		/// <summary>
		/// 计划数
		/// </summary>
		[Range(0, int.MaxValue)]
		public int Numberofpackages { get; set; }
		/// <summary>
		/// 开始时间
		/// </summary> 
		public DateTime? StartTime { get; set; }
		/// <summary>
		/// 结束时间
		/// </summary> 
		public DateTime? EndTime { get; set; }
		/// <summary>
		/// 状态
		/// </summary>
		public WorkSheetState State { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		public string? Remark { get; set; }
		/// <summary>
		/// 任务列表Id
		/// </summary>
		public int[] TaskIds { get; set; }
	}
}
